package com.aaa.custom.controller.orderContrllor;

import com.aaa.custom.service.orderService.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * fileName:OrderController
 * description:
 * author:zxh
 * createTime:2020/1/13 9:01
 * version:1.0.0
 */
@RestController
@RequestMapping("order")
public class OrderController {
    @Autowired
    private OrderService orderService;
    @RequestMapping("orderList")
    public Object getAllOrder(Long id,Long member_id,Long shop_id,String order_sn){
        return orderService.byMember_idAndShop_idGetShop(id,member_id,shop_id,order_sn);
    }
    @RequestMapping("oneOrder")
    public Object getOneOrder(String order_sn){
        return orderService.byOrder_snGetOrder(order_sn);
    }
    @RequestMapping("delect_update")
    public Object byIdUpdateOrder(Long id, Integer delete_status, Integer confirm_status, Integer status){
        return orderService.delectOrderByID(id,delete_status,confirm_status,status);
    }
}
